package com.hao;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 传感器数据采集系统主类
 */
@SpringBootApplication
@MapperScan("com.hao.mapper")
@EnableScheduling
public class Main {
    
    public static void main(String[] args) {
        SpringApplication.run(Main.class, args);
        System.out.println("传感器数据采集系统启动成功！");
        System.out.println("API接口地址：http://localhost:8080");
        System.out.println("健康检查：http://localhost:8080/health");
        System.out.println("数据上传：POST http://localhost:8080/api/data");
    }
} 